package com.guge.sports.excelListener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.guge.sports.entity.StTeacher;
import org.springframework.stereotype.Component;

import java.util.Map;

//@Component
public class StTeacherExcelListener extends AnalysisEventListener<StTeacher> {

    //读取excel内容，一行一行进行读取
    @Override
    public void invoke(StTeacher stTeacher, AnalysisContext analysisContext) {

    }

    //读取表头
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        super.invokeHeadMap(headMap, context);
    }


    //读取完成之后
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
